import type { App } from "vue";
import { ControlType, registerControlProvider } from "@ibiz-template/runtime";
import IBizViewLayoutPanel from "./i-biz-view-layout-panel.vue";
import { ViewLayoutPanelProvider } from "./i-biz-view-layout-panel.provider";

export const IBizViewLayout = {
  install(v: App) {
    v.component("IBizViewLayoutPanel", IBizViewLayoutPanel);
    registerControlProvider(ControlType.VIEW_LAYOUT_PANEL, () => new ViewLayoutPanelProvider());
  },
};
